/* ==========================================================================
   Component: Form
 ============================================================================ */
/* Normalize */
fieldset {
	border: none;
}

legend {
	display: block;
	width: 100%;
	margin-bottom: 2rem;
	font-size: 2rem;
	line-height: inherit;
	color: #333333;
	border-bottom: 1px solid #e5e5e5;
	padding-bottom: 0.5rem;
}

label {
	display: inline-block;
	margin-bottom: 5px;
	font-weight: bold;
}

input[type="search"] {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

input[type="radio"],
input[type="checkbox"] {
	margin: 4px 0 0;
	margin-top: 1px \9;
	/* IE8-9 */
	line-height: normal;
}

input[type="file"] {
	display: block;
}

select[multiple],
select[size] {
	height: auto;
}

select optgroup {
	font-size: inherit;
	font-style: inherit;
	font-family: inherit;
}

input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
	outline: thin dotted;
	outline: 5px auto -webkit-focus-ring-color;
	outline-offset: -2px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	height: auto;
}

output {
	display: block;
	padding-top: 1.6rem;
	font-size: 1.6rem;
	line-height: 1.6;
	color: #555555;
	vertical-align: middle;
}
/* Common form controls */
.am-form select,
.am-form textarea,
.am-form input[type="text"],
.am-form input[type="password"],
.am-form input[type="datetime"],
.am-form input[type="datetime-local"],
.am-form input[type="date"],
.am-form input[type="month"],
.am-form input[type="time"],
.am-form input[type="week"],
.am-form input[type="number"],
.am-form input[type="email"],
.am-form input[type="url"],
.am-form input[type="search"],
.am-form input[type="tel"],
.am-form input[type="color"],
.am-form-field {
	display: block;
	width: 100%;
	padding: 0.625em;
	font-size: 1.6rem;
	line-height: 1.2;
	color: #555555;
	vertical-align: middle;
	background-color: #ffffff;
	background-image: none;
	border: 1px solid #cccccc;
	border-radius: 0;
	-webkit-appearance: none;
	-webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.am-form select:focus,
.am-form textarea:focus,
.am-form input[type="text"]:focus,
.am-form input[type="password"]:focus,
.am-form input[type="datetime"]:focus,
.am-form input[type="datetime-local"]:focus,
.am-form input[type="date"]:focus,
.am-form input[type="month"]:focus,
.am-form input[type="time"]:focus,
.am-form input[type="week"]:focus,
.am-form input[type="number"]:focus,
.am-form input[type="email"]:focus,
.am-form input[type="url"]:focus,
.am-form input[type="search"]:focus,
.am-form input[type="tel"]:focus,
.am-form input[type="color"]:focus,
.am-form-field:focus {
	outline: 0;
}

.am-form select:focus,
.am-form textarea:focus,
.am-form input[type="text"]:focus,
.am-form input[type="password"]:focus,
.am-form input[type="datetime"]:focus,
.am-form input[type="datetime-local"]:focus,
.am-form input[type="date"]:focus,
.am-form input[type="month"]:focus,
.am-form input[type="time"]:focus,
.am-form input[type="week"]:focus,
.am-form input[type="number"]:focus,
.am-form input[type="email"]:focus,
.am-form input[type="url"]:focus,
.am-form input[type="search"]:focus,
.am-form input[type="tel"]:focus,
.am-form input[type="color"]:focus,
.am-form-field:focus {
	background-color: #fafffe;
	border-color: #3bb4f2;
	outline: 0;
	-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px rgba(59, 180, 242, 0.3);
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px rgba(59, 180, 242, 0.3);
}

.am-form select::-webkit-input-placeholder,
.am-form textarea::-webkit-input-placeholder,
.am-form input[type="text"]::-webkit-input-placeholder,
.am-form input[type="password"]::-webkit-input-placeholder,
.am-form input[type="datetime"]::-webkit-input-placeholder,
.am-form input[type="datetime-local"]::-webkit-input-placeholder,
.am-form input[type="date"]::-webkit-input-placeholder,
.am-form input[type="month"]::-webkit-input-placeholder,
.am-form input[type="time"]::-webkit-input-placeholder,
.am-form input[type="week"]::-webkit-input-placeholder,
.am-form input[type="number"]::-webkit-input-placeholder,
.am-form input[type="email"]::-webkit-input-placeholder,
.am-form input[type="url"]::-webkit-input-placeholder,
.am-form input[type="search"]::-webkit-input-placeholder,
.am-form input[type="tel"]::-webkit-input-placeholder,
.am-form input[type="color"]::-webkit-input-placeholder,
.am-form-field::-webkit-input-placeholder {
	color: #999999;
}

.am-form select::-moz-placeholder,
.am-form textarea::-moz-placeholder,
.am-form input[type="text"]::-moz-placeholder,
.am-form input[type="password"]::-moz-placeholder,
.am-form input[type="datetime"]::-moz-placeholder,
.am-form input[type="datetime-local"]::-moz-placeholder,
.am-form input[type="date"]::-moz-placeholder,
.am-form input[type="month"]::-moz-placeholder,
.am-form input[type="time"]::-moz-placeholder,
.am-form input[type="week"]::-moz-placeholder,
.am-form input[type="number"]::-moz-placeholder,
.am-form input[type="email"]::-moz-placeholder,
.am-form input[type="url"]::-moz-placeholder,
.am-form input[type="search"]::-moz-placeholder,
.am-form input[type="tel"]::-moz-placeholder,
.am-form input[type="color"]::-moz-placeholder,
.am-form-field::-moz-placeholder {
	color: #999999;
}

.am-form select:-ms-input-placeholder,
.am-form textarea:-ms-input-placeholder,
.am-form input[type="text"]:-ms-input-placeholder,
.am-form input[type="password"]:-ms-input-placeholder,
.am-form input[type="datetime"]:-ms-input-placeholder,
.am-form input[type="datetime-local"]:-ms-input-placeholder,
.am-form input[type="date"]:-ms-input-placeholder,
.am-form input[type="month"]:-ms-input-placeholder,
.am-form input[type="time"]:-ms-input-placeholder,
.am-form input[type="week"]:-ms-input-placeholder,
.am-form input[type="number"]:-ms-input-placeholder,
.am-form input[type="email"]:-ms-input-placeholder,
.am-form input[type="url"]:-ms-input-placeholder,
.am-form input[type="search"]:-ms-input-placeholder,
.am-form input[type="tel"]:-ms-input-placeholder,
.am-form input[type="color"]:-ms-input-placeholder,
.am-form-field:-ms-input-placeholder {
	color: #999999;
}

.am-form select::placeholder,
.am-form textarea::placeholder,
.am-form input[type="text"]::placeholder,
.am-form input[type="password"]::placeholder,
.am-form input[type="datetime"]::placeholder,
.am-form input[type="datetime-local"]::placeholder,
.am-form input[type="date"]::placeholder,
.am-form input[type="month"]::placeholder,
.am-form input[type="time"]::placeholder,
.am-form input[type="week"]::placeholder,
.am-form input[type="number"]::placeholder,
.am-form input[type="email"]::placeholder,
.am-form input[type="url"]::placeholder,
.am-form input[type="search"]::placeholder,
.am-form input[type="tel"]::placeholder,
.am-form input[type="color"]::placeholder,
.am-form-field::placeholder {
	color: #999999;
}

.am-form select::-moz-placeholder,
.am-form textarea::-moz-placeholder,
.am-form input[type="text"]::-moz-placeholder,
.am-form input[type="password"]::-moz-placeholder,
.am-form input[type="datetime"]::-moz-placeholder,
.am-form input[type="datetime-local"]::-moz-placeholder,
.am-form input[type="date"]::-moz-placeholder,
.am-form input[type="month"]::-moz-placeholder,
.am-form input[type="time"]::-moz-placeholder,
.am-form input[type="week"]::-moz-placeholder,
.am-form input[type="number"]::-moz-placeholder,
.am-form input[type="email"]::-moz-placeholder,
.am-form input[type="url"]::-moz-placeholder,
.am-form input[type="search"]::-moz-placeholder,
.am-form input[type="tel"]::-moz-placeholder,
.am-form input[type="color"]::-moz-placeholder,
.am-form-field::-moz-placeholder {
	opacity: 1;
}

.am-form select[disabled],
.am-form textarea[disabled],
.am-form input[type="text"][disabled],
.am-form input[type="password"][disabled],
.am-form input[type="datetime"][disabled],
.am-form input[type="datetime-local"][disabled],
.am-form input[type="date"][disabled],
.am-form input[type="month"][disabled],
.am-form input[type="time"][disabled],
.am-form input[type="week"][disabled],
.am-form input[type="number"][disabled],
.am-form input[type="email"][disabled],
.am-form input[type="url"][disabled],
.am-form input[type="search"][disabled],
.am-form input[type="tel"][disabled],
.am-form input[type="color"][disabled],
.am-form-field[disabled],
.am-form select[readonly],
.am-form textarea[readonly],
.am-form input[type="text"][readonly],
.am-form input[type="password"][readonly],
.am-form input[type="datetime"][readonly],
.am-form input[type="datetime-local"][readonly],
.am-form input[type="date"][readonly],
.am-form input[type="month"][readonly],
.am-form input[type="time"][readonly],
.am-form input[type="week"][readonly],
.am-form input[type="number"][readonly],
.am-form input[type="email"][readonly],
.am-form input[type="url"][readonly],
.am-form input[type="search"][readonly],
.am-form input[type="tel"][readonly],
.am-form input[type="color"][readonly],
.am-form-field[readonly],
fieldset[disabled] .am-form select,
fieldset[disabled] .am-form textarea,
fieldset[disabled] .am-form input[type="text"],
fieldset[disabled] .am-form input[type="password"],
fieldset[disabled] .am-form input[type="datetime"],
fieldset[disabled] .am-form input[type="datetime-local"],
fieldset[disabled] .am-form input[type="date"],
fieldset[disabled] .am-form input[type="month"],
fieldset[disabled] .am-form input[type="time"],
fieldset[disabled] .am-form input[type="week"],
fieldset[disabled] .am-form input[type="number"],
fieldset[disabled] .am-form input[type="email"],
fieldset[disabled] .am-form input[type="url"],
fieldset[disabled] .am-form input[type="search"],
fieldset[disabled] .am-form input[type="tel"],
fieldset[disabled] .am-form input[type="color"],
fieldset[disabled] .am-form-field {
	cursor: not-allowed;
	background-color: #eeeeee;
}

.am-form select.am-radius,
.am-form textarea.am-radius,
.am-form input[type="text"].am-radius,
.am-form input[type="password"].am-radius,
.am-form input[type="datetime"].am-radius,
.am-form input[type="datetime-local"].am-radius,
.am-form input[type="date"].am-radius,
.am-form input[type="month"].am-radius,
.am-form input[type="time"].am-radius,
.am-form input[type="week"].am-radius,
.am-form input[type="number"].am-radius,
.am-form input[type="email"].am-radius,
.am-form input[type="url"].am-radius,
.am-form input[type="search"].am-radius,
.am-form input[type="tel"].am-radius,
.am-form input[type="color"].am-radius,
.am-form-field.am-radius {
	border-radius: 2px;
}

.am-form select.am-round,
.am-form textarea.am-round,
.am-form input[type="text"].am-round,
.am-form input[type="password"].am-round,
.am-form input[type="datetime"].am-round,
.am-form input[type="datetime-local"].am-round,
.am-form input[type="date"].am-round,
.am-form input[type="month"].am-round,
.am-form input[type="time"].am-round,
.am-form input[type="week"].am-round,
.am-form input[type="number"].am-round,
.am-form input[type="email"].am-round,
.am-form input[type="url"].am-round,
.am-form input[type="search"].am-round,
.am-form input[type="tel"].am-round,
.am-form input[type="color"].am-round,
.am-form-field.am-round {
	border-radius: 1000px;
}

.am-form textarea,
.am-form select[multiple],
.am-form select[size] {
	height: auto;
}

.am-form select {
	-webkit-appearance: none !important;
	-webkit-border-radius: 0;
	background: #ffffff url('') no-repeat 100% center;
}

.am-form select[multiple="multiple"] {
	background-image: none;
}
/* help text */
.am-form-help {
	display: block;
	margin-top: 5px;
	margin-bottom: 10px;
	color: #999999;
	font-size: 1.3rem;
}
/* form group */
.am-form-group {
	margin-bottom: 1.5rem;
}
/**
 * Checkboxes and radios
 * Indent the labels to position radios/checkboxes as hanging controls.
*/
.am-radio,
.am-checkbox {
	display: block;
	min-height: 1.92rem;
	margin-top: 10px;
	margin-bottom: 10px;
	padding-left: 20px;
	vertical-align: middle;
}

.am-radio label,
.am-checkbox label {
	display: inline;
	margin-bottom: 0;
	font-weight: normal;
	cursor: pointer;
}

.am-radio input[type="radio"],
.am-radio-inline input[type="radio"],
.am-checkbox input[type="checkbox"],
.am-checkbox-inline input[type="checkbox"] {
	float: left;
	margin-left: -20px;
	outline: none;
}

.am-radio + .am-radio,
.am-checkbox + .am-checkbox {
	margin-top: -5px;
}
/* Radios and checkboxes inline */
.am-radio-inline,
.am-checkbox-inline {
	display: inline-block;
	padding-left: 20px;
	margin-bottom: 0;
	vertical-align: middle;
	font-weight: normal;
	cursor: pointer;
}

.am-radio-inline + .am-radio-inline,
.am-checkbox-inline + .am-checkbox-inline {
	margin-top: 0;
	margin-left: 10px;
}

input[type="radio"][disabled],
input[type="checkbox"][disabled],
.am-radio[disabled],
.am-radio-inline[disabled],
.am-checkbox[disabled],
.am-checkbox-inline[disabled],
fieldset[disabled] input[type="radio"],
fieldset[disabled] input[type="checkbox"],
fieldset[disabled] .am-radio,
fieldset[disabled] .am-radio-inline,
fieldset[disabled] .am-checkbox,
fieldset[disabled] .am-checkbox-inline {
	cursor: not-allowed;
}
/* Form field feedback states */
.am-form-warning .am-form-help,
.am-form-warning .am-form-label,
.am-form-warning .am-radio,
.am-form-warning .am-checkbox,
.am-form-warning .am-radio-inline,
.am-form-warning .am-checkbox-inline {
	color: #f37b1d;
}

.am-form-warning .am-form-field {
	border-color: #f37b1d !important;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.am-form-warning .am-form-field:focus {
	background-color: #fafffe;
	border-color: #d2620b;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 5px #f8b47e !important;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 5px #f8b47e !important;
}

.am-form-warning [class*="icon-"] {
	color: #f37b1d;
}

.am-form-error .am-form-help,
.am-form-error .am-form-label,
.am-form-error .am-radio,
.am-form-error .am-checkbox,
.am-form-error .am-radio-inline,
.am-form-error .am-checkbox-inline {
	color: #dd514c;
}

.am-form-error .am-form-field {
	border-color: #dd514c !important;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.am-form-error .am-form-field:focus {
	background-color: #fafffe;
	border-color: #cf2d27;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 5px #eda4a2 !important;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 5px #eda4a2 !important;
}

.am-form-error [class*="icon-"] {
	color: #dd514c;
}

.am-form-success .am-form-help,
.am-form-success .am-form-label,
.am-form-success .am-radio,
.am-form-success .am-checkbox,
.am-form-success .am-radio-inline,
.am-form-success .am-checkbox-inline {
	color: #5eb95e;
}

.am-form-success .am-form-field {
	border-color: #5eb95e !important;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.am-form-success .am-form-field:focus {
	background-color: #fafffe;
	border-color: #459f45;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 5px #a5d8a5 !important;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 5px #a5d8a5 !important;
}

.am-form-success [class*="icon-"] {
	color: #5eb95e;
}
/* Horizontal forms */
.am-form-horizontal .am-form-label,
.am-form-horizontal .am-radio,
.am-form-horizontal .am-checkbox,
.am-form-horizontal .am-radio-inline,
.am-form-horizontal .am-checkbox-inline {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0.6em;
}

.am-form-horizontal .am-form-group:before,
.am-form-horizontal .am-form-group:after {
	content: " ";
	display: table;
}

.am-form-horizontal .am-form-group:after {
	clear: both;
}

@media only screen and (min-width:641px) {
	.am-form-horizontal .am-form-label {
		text-align: right;
	}
}
/* Inline form elements */
@media only screen and (min-width:641px) {
	.am-form-inline .am-form-group {
		display: inline-block;
		margin-bottom: 0;
		vertical-align: middle;
	}

	.am-form-inline .am-form-field {
		display: inline-block;
		width: auto;
		vertical-align: middle;
	}

	.am-form-inline .am-input-group {
		display: inline-table;
		vertical-align: middle;
	}

	.am-form-inline .am-input-group .am-input-group-addon,
	.am-form-inline .am-input-group .am-input-group-btn,
	.am-form-inline .am-input-group .am-form-control {
		width: auto;
	}

	.am-form-inline .am-input-group > .am-form-field {
		width: 100%;
	}

	.am-form-inline .am-form-label {
		margin-bottom: 0;
		vertical-align: middle;
	}

	.am-form-inline .am-radio,
	.am-form-inline .am-checkbox {
		display: inline-block;
		margin-top: 0;
		margin-bottom: 0;
		padding-left: 0;
		vertical-align: middle;
	}

	.am-form-inline .am-radio input[type="radio"],
	.am-form-inline .am-checkbox input[type="checkbox"] {
		float: none;
		margin-left: 0;
	}

	.am-form-inline .am-form-feedback .am-form-field-feedback {
		top: 0;
	}
}
/* Form field size */
.am-input-sm {
	font-size: 1.4rem !important;
}

.am-input-lg {
	font-size: 1.8rem !important;
}
/* Form field feedback states */
.am-form-icon {
	position: relative;
}

.am-form-icon .am-form-field {
	padding-left: 1.875em !important;
}

.am-form-icon [class*='am-icon-'] {
	position: absolute;
	left: 0.625em;
	top: 50%;
	display: block;
	margin-top: -0.635em;
	line-height: 1;
	z-index: 2;
}
/* Feedback Icon */
.am-form-feedback {
	position: relative;
}

.am-form-feedback .am-form-field {
	padding-left: 0.625em !important;
	padding-right: 1.875em !important;
}

.am-form-feedback [class*='am-icon-'] {
	right: 0.625em;
	left: auto;
}
/* Form set */
.am-form-set {
	margin-bottom: 1.5rem;
	padding: 0;
}

.am-form-set > input {
	position: relative;
	top: -1px;
	border-radius: 0 !important;
}

.am-form-set > input:focus {
	z-index: 2;
}

.am-form-set > input:first-child {
	top: 1px;
	border-top-right-radius: 0 !important;
	border-top-left-radius: 0 !important;
}

.am-form-set > input:last-child {
	top: -2px;
	border-bottom-right-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
}